package cn.lg.soar.core.util.easyexcel.model;

import lombok.Getter;
import lombok.Setter;
import org.apache.poi.ss.usermodel.CellStyle;

/**
 * 单元格属性
 * @author luguoxiang
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
@Getter
@Setter
public class CellInfo {

    /**
     * 行索引
     */
    protected int rowIndex;

    /**
     * 列索引
     */
    protected int colIndex;

    /**
     * 单元格数据
     */
    protected Object value;

    /**
     * 单元格样式
     */
    protected CellStyle style;

    public CellInfo(int rowIndex, int colIndex) {
        this.rowIndex = rowIndex;
        this.colIndex = colIndex;
    }

    public CellInfo(int rowIndex, int colIndex, Object value) {
        this.rowIndex = rowIndex;
        this.colIndex = colIndex;
        this.value = value;
    }

    public CellInfo(int rowIndex, int colIndex, Object value, CellStyle style) {
        this.rowIndex = rowIndex;
        this.colIndex = colIndex;
        this.value = value;
        this.style = style;
    }
}
